﻿/**
* jQuery EasyUI 1.2.2
* 
* Licensed under the GPL:
*   http://www.gnu.org/licenses/gpl.txt
*
* Copyright 2010 stworthy [ stworthy@gmail.com ] 
* 
*/
(function ($) {
    $.parser = { auto: true, onComplete: function (_1) {
    }, plugins: ["linkbutton", "menu", "menubutton", "splitbutton", "tree", "combobox", "combotree", "numberbox", "validatebox", "numberspinner", "timespinner", "calendar", "datebox", "datetimebox", "layout", "panel", "datagrid", "tabs", "accordion", "window", "dialog"], parse: function (_2) {
        var aa = [];
        for (var i = 0; i < $.parser.plugins.length; i++) {
            var _3 = $.parser.plugins[i];
            var r = $(".easyui-" + _3, _2);
            if (r.length) {
                if (r[_3]) {
                    r[_3]();
                } else {
                    aa.push({ name: _3, jq: r });
                }
            }
        }
        if (aa.length && window.easyloader) {
            var _4 = [];
            for (var i = 0; i < aa.length; i++) {
                _4.push(aa[i].name);
            }
            easyloader.load(_4, function () {
                for (var i = 0; i < aa.length; i++) {
                    var _5 = aa[i].name;
                    var jq = aa[i].jq;
                    jq[_5]();
                }
                $.parser.onComplete.call($.parser, _2);
            });
        } else {
            $.parser.onComplete.call($.parser, _2);
        }
    } 
    };
    $(function () {
        if (!window.easyloader && $.parser.auto) {
            $.parser.parse();
        }
    });
})(jQuery);

